Skip to content

docs: Skip markdown link check on github.com links - #4474

Open
rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:disable-github-link-checks
Open

rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:disable-github-link-checks

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

Rationale for this change

I've had a number of PRs where the Markdown link checker flakes on some number of github.com links. I'm wondering if there's value in checking those links for every PR.

This PR adds disables on every github.com link. If we don't like this, it might be worth just making this link check happen at release time.

Are these changes tested?

Expect linters to pass.

Are there any user-facing changes?

github.com intermittently returns 503s to the link checker, failing CI
on unrelated PRs.

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rambleraptor! Nice, this should cut down on the flaky link checks :)

Small observation: the title says github.com links, but a few of the disabled lines are not github.com, e.g. the dev mailing list and Slack link in community.md, the Apache dist links in how-to-release.md, and the gist in the GPG section. Might be worth renaming the PR, or narrowing the disables to just the flaky ones if those apache.org links are actually stable.

Nit: an alternative could be a single .markdown-link-check.json with ignorePatterns for https://github\.com/.*, which would avoid sprinkling comments through all the docs. Either way works though. Also open to just running the link check at release time as you suggest, that seems reasonable too.

Replace the per-line disable comments with a single ignorePattern, so
new github.com links are covered without annotations and neighboring
non-GitHub links on the same line are still checked.
@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@Fokko yep, I see that. We have lines that share both Github and non-GitHub links, so the linter doesn't have a way to just turn off one.

Adding the config file is much cleaner. Made that change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants